﻿<Page x:Class="JasRibbonApplicatie.Views.Ontleningen"
	  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	  mc:Ignorable="d" 
	  d:DesignHeight="498" d:DesignWidth="983"
	Title="OntleningUitlenen" IsEnabled="True">

	<Grid Width="988" Height="510">
		<Canvas Height="478" HorizontalAlignment="Left" Margin="12,12,0,0" Name="aanvragenCanvas" VerticalAlignment="Top" Width="308" Panel.ZIndex="5">
            <GroupBox Canvas.Left="6" Canvas.Top="6" Header="Aanvragen" Height="466" Name="wekenAanvragenGroupBox" Width="296" VerticalAlignment="Top">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="17*" />
                        <ColumnDefinition Width="267*" />
                    </Grid.ColumnDefinitions>
                    <Button Content="&lt;&lt;" Name="vorigeWeekButton" Width="38" Click="vorigeWeekButton_Click" Margin="12,44,217,367" Grid.Column="1" />
                    <Button Content="&gt;&gt;" Name="volgendeWeekButton" Width="38" Click="volgendeWeekButton_Click" Margin="199,44,30,367" Grid.Column="1" />
                    <Label Content="Week 000 test" Name="weekLabel" Width="137" HorizontalAlignment="Center" HorizontalContentAlignment="Center" Margin="56,44,74,367" Grid.Column="1" VerticalContentAlignment="Center" />
                    <Button Content="Naar huidige week gaan" Name="huidigeWeekButton" Click="huidigeWeekButton_Click" IsEnabled="False" Margin="56,10,74,405" Grid.Column="1" />
                    <DataGrid AutoGenerateColumns="False" Name="aanvragenDataGrid" DataContext="{Binding}" GridLinesVisibility="None" Width="266" BorderBrush="#00000000" Background="White" SelectionChanged="aanvragenDataGrid_SelectionChanged" Margin="7,82,11,15" Grid.ColumnSpan="2">
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding AanvraagId}" Header="ID" IsReadOnly="True" />
                            <DataGridTextColumn Binding="{Binding Evenement.naam}" Header="Activiteit" IsReadOnly="True" />
                        </DataGrid.Columns>
                    </DataGrid>
                </Grid>
            </GroupBox>
        </Canvas>
		
		<Canvas Height="88" HorizontalAlignment="Left" Margin="335,12,0,0" Name="scanCanvas" VerticalAlignment="Top" Width="335">
			<TextBox Height="34" Name="scanTextBox" Width="167" IsEnabled="False" Canvas.Left="142" Canvas.Top="7" HorizontalAlignment="Center" TextChanged="scanTextBox_TextChanged" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" FontSize="20" FontFamily="Estrangelo Edessa" />
			<Label Content="Scannen (of intypen):" Height="27" Name="uitlegScannenLabel" Width="121" Visibility="Visible" IsEnabled="False" Canvas.Left="15" Canvas.Top="10" HorizontalAlignment="Left" VerticalContentAlignment="Center" />
        </Canvas>
		
		
		<Canvas Height="384" HorizontalAlignment="Left" Margin="335,106,0,0" Name="uitscannenMaterialenCanvas" VerticalAlignment="Top" Width="634">
			<!--<DataGrid AutoGenerateColumns="False" Canvas.Left="8" Canvas.Top="44" Height="200" Name="verhuurMaterialenDataGrid" Width="406"-->
					  <!--DataContext="{Binding}" GridLinesVisibility="All" AlternatingRowBackground="#870059D9" BorderBrush="#00000000" Background="White" />-->
			<Label Canvas.Left="8" Canvas.Top="6" Content="Laatst ingescand:" Height="28" Name="laatstGescandUitlegLabel" />
			<TextBox Canvas.Left="118" Canvas.Top="8" Height="23" Name="laatstGescandTextBox" Width="120" Focusable="False" />
			<GroupBox Canvas.Left="9" Canvas.Top="37" Header="Producten" Name="materialenGroupBox" Width="300" Height="341">
				<Grid>
					<DataGrid AlternatingRowBackground="#2A0059D9" AutoGenerateColumns="false" Background="White" BorderBrush="#00000000" CanUserResizeRows="True" DataContext="{Binding}" GridLinesVisibility="None" HeadersVisibility="Column" Name="materialenDataGrid" SelectionMode="Single" SelectionUnit="FullRow" UseLayoutRounding="False">
						<DataGrid.Columns>
							<DataGridTextColumn Binding="{Binding Producttype}" Header="Naam" IsReadOnly="True" Width="150"/>
							<DataGridTextColumn Binding="{Binding AantalGoedgekeurd}" IsReadOnly="True">
								<DataGridTextColumn.Header>
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/vinkje.png" ToolTip="Aantal goedgekeurd" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
							<DataGridTextColumn Binding="{Binding AantalOntleend}" IsReadOnly="False">
								<DataGridTextColumn.Header>
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/exchange.png" ToolTip="Aantal reeds ontleend" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
							<DataGridTextColumn Binding="{Binding AantalBinnengebracht}" IsReadOnly="True">
								<DataGridTextColumn.Header>                                 
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/exchangeRotated.png" ToolTip="Aantal reeds binnengebracht" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
						</DataGrid.Columns>
					</DataGrid>
				</Grid>
			</GroupBox>
			<GroupBox Header="Toebehoren" Name="toebehorenGroupBox" Width="300" Canvas.Left="320" Canvas.Top="37" Height="341">
				<Grid>
					<DataGrid AutoGenerateColumns="false" Name="toebehorenDataGrid" DataContext="{Binding}" HeadersVisibility="Column" SelectionMode="Single" SelectionUnit="FullRow" GridLinesVisibility="None" AlternatingRowBackground="#2A0059D9" BorderBrush="#00000000" Background="White" CanUserResizeRows="True" UseLayoutRounding="False">
						<DataGrid.Columns>
							<DataGridTextColumn Binding="{Binding Producttype.naam}" Header="Naam" IsReadOnly="True" Width="150" />
							<DataGridTextColumn Binding="{Binding AantalGoedgekeurd}" IsReadOnly="True">
								<DataGridTextColumn.Header>
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/vinkje.png" ToolTip="Aantal goedgekeurd" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
							<DataGridTextColumn Binding="{Binding AantalOntleend}" IsReadOnly="False">
								<DataGridTextColumn.Header>
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/exchange.png" ToolTip="Aantal reeds ontleend" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
							<DataGridTextColumn Binding="{Binding AantalBinnengebracht}" IsReadOnly="True">
								<DataGridTextColumn.Header>
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/exchangeRotated.png" ToolTip="Aantal reeds binnengebracht" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
						</DataGrid.Columns>
					</DataGrid>
				</Grid>
			</GroupBox>
			<Image Canvas.Left="244" Canvas.Top="8" Height="23" Name="statusImage" Stretch="Fill" Width="24" Source="/JasRibbonApplicatie;component/Images/info.png" />
		</Canvas>
        <GroupBox Header="Probleem" Height="80" HorizontalAlignment="Left" Margin="685,18,0,0" Name="probleemGroupbox" VerticalAlignment="Top" Width="284"
                  Visibility="Visible">
            <Grid>
                <Image Height="49" HorizontalAlignment="Left" Margin="6,6,0,0" Name="probleemImage" Stretch="Fill" VerticalAlignment="Top" Width="50"
                       Source="/JasRibbonApplicatie;component/Images/info.png"/>
                <TextBox Height="49" HorizontalAlignment="Left" Focusable="False" Margin="62,6,0,0" Name="probleemTextBox" VerticalAlignment="Top" Width="204" Foreground="#FFAA0000" TextWrapping="Wrap" />
            </Grid>
        </GroupBox>
    </Grid>
</Page>
